wayland: Set a null cursor surface when cursor buffer is null
authorJonas Ådahl <jadahl@gmail.com>
Fri, 20 Nov 2015 08:49:12 +0000 (16:49 +0800)
committerMatthias Clasen <mclasen@redhat.com>
Fri, 20 Nov 2015 16:59:46 +0000 (11:59 -0500)
commitdc65abc44c403e980b0f74815d63d979d8f663d9
treed1bca6375892f0e8f6a722dc9d8fbe5b280bf88e
parentcf7bb4f2aa18255d52ba97bd12a8930b3b879fc5
wayland: Set a null cursor surface when cursor buffer is null

If the buffer of a cursor is NULL, for example if its an empty cursor,
just set the cursor surface to NULL as well. Not doing this we'll use
uninitialized hotspot coordinates, dimensions and scales.

https://bugzilla.gnome.org/show_bug.cgi?id=758025
gdk/wayland/gdkdevice-wayland.c